<template>
  <div class="sidebar">
    <ul>
      <li><router-link to="/">首页</router-link></li>
      <li><router-link to="/about">关于</router-link></li>
      <li><router-link to="/settings">设置</router-link></li>
    </ul>
  </div>
</template>

<script setup>
// 这里可以添加逻辑
</script>

<style scoped>
.sidebar {
  width: 200px;
  background-color: #f0f0f0;
  height: 100vh;
  position: fixed;
  padding: 20px 0;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 10px 20px;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  display: block;
}

.sidebar a:hover,
.sidebar a.router-link-active {
  color: #42b983;
}
</style>